package cn.edu.nju.software.zp13.assignment6.client;

import cn.edu.nju.software.zp13.client.assignment4.sax.CourseScoreSelector;
import cn.edu.nju.software.zp13.client.assignment4.sax.xmlNodeEntity.CourseScoreList;

/**
 * read input from user,and encap
 * 
 * @author Ivan
 *
 */
public class InputReader {
	private final String inputFilePath = System.getProperty("user.dir") + "/src/cn/edu/nju/software/zp13/assignment6/client/input";
	private CourseScoreSelector selector;

	public InputReader() {
		selector = new CourseScoreSelector();
	}

	public CourseScoreList getCourseScoreToBeModified() {
		CourseScoreList csl = new CourseScoreList();
		csl.setCs(selector.selectRequiredCourseScore(s -> {
			return true;
		} , inputFilePath));
		return csl;
	}
}
